package com.gdit.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import com.gdit.comm.enums.Status;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 *
 * 权限
 *
 * @author fgba
 * @since 2021-09-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_permissions")
@ApiModel(value="Permissions对象", description="")
public class Permissions implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty(value = "权限名称")
    private String name;

    @ApiModelProperty(value = "授权(多个用逗号分隔，如：user:list)")
    private String perms;

    @ApiModelProperty(value = "状态，0为正常，1为删除")
    @TableLogic(value = "0",delval = "1")
    private Status status;


}
